<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix='c' uri='http://java.sun.com/jsp/jstl/core' %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>    
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<html>
<head>

 <link href="<c:url value="/resources/homepage.css" />" rel="stylesheet">
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Display task</title>
<script type="text/javascript">
function fun1()
{
	window.location.assign("Taskboard1.jsp");
}
</script>
</head>
<body>
	<div id="wrapper">
		<!-- ============ HEADER SECTION ============== -->
		<div id="header">
			<div id="headerlogo"></div>
		</div>
		<!-- ============ NAVIGATION SECTION ============== -->
		<div id="menubar">

			<ul>
<li><a href="Project">Projects</a></li>
					<li><a href="Backlog">Backlog</a></li>
					<li><a href="SprintPlanning">Sprint Planning</a></li>
					<li><a href="Storyboard1">Sprint Tracking</a></li>
					<li><a href="logout">Logout</a></li>
				</ul>
		</div>

		<!-- ============ MIDDLE SECTION ============== -->
		<div id="m1">
			<fieldset>
				<legend>
					<h3>Task Details</h3>
				</legend>
				<form:form action="Addtask1" method="get" modelAttribute="task">
				<table>
<!--  					<form:hidden path="story_id" /> 
<%-- 					<%int story_id = Integer.parseInt(request.getParameter("story_id")); --%>
<%-- 						System.out.println("strory id is :"+story_id);%> --%>
-->
					<tr>
					
						<td>Task Title</td>
						<td><form:input path="task_title" size="30" readonly="true" /></td>
						<td></td>
						<td>Status</td>
						<td>
							<form:select path="status_id" disabled="true" >
<%-- 										<option value=<c:out value="${status_name.status_id}"/>>${status_name.status_name}</option> --%>
									<c:forEach var="status" items="${liststatus}">
										<option value=<c:out value="${status.status_id}"/>>
											<c:out value="${status.status_name}" />
										</option>
									</c:forEach>
								</form:select>						
						</td>
					</tr>
					<tr>
						<td>Owner</td>
						<td><form:input path="task_owner" size="30" readonly="true" /></td>
						<td></td>
			 			<td>Complexity</td>
						<td>
							<form:select path="complexity_id" disabled="true" >
										<option value=<c:out value="${complexity_name.complexity_id}"/>>${complexity_name.complexity_name}</option>
									<c:forEach var="complexity" items="${listcomplexity}">
										<option value=<c:out value="${complexity.complexity_id}"/>>
											<c:out value="${complexity.complexity_name}" />
										</option>
									</c:forEach>
								</form:select>
						</td>
					</tr>
					<tr>
						<td>Description</td>
						<td><form:textarea path="task_description" size="30" readonly="true" rows="5" cols="30" /></td>
			
						<td></td>
						<td>Actual Effort</td>
						<td><form:input path="actual_effort" size="30" readonly="true" /></td>
					</tr>
					<tr>
						<td></td>
						<td></td>
						<td></td>
						<td>Remaining Effort</td>
						<td><form:input path="remaining_effort" size="30" readonly="true" /></td>
						
					</tr>
								
 					<tr>
<!-- 					<td><input type="button" value="BACK" onclick="fun1()"></td> -->
					
					</tr>
				</table>
 </form:form>
			</fieldset>
		</div>
		
		<div id="footer">
			<p>Copyright &copy; 2014 - All Rights Reserved - Spring Computing
				Pvt. Ltd.</p>
		</div>
	</div>


</body>
</html>